<template>
    <div>
        页面3
    </div>
    <a-button @click="testAddRouter">主页</a-button>
</template>
<script>
import { useRouter } from 'vue-router'
export default {
    name:"Route3",
    setup () {
        console.log('页面3')

        const router = useRouter()

        function testAddRouter(){
            router.push('/')
        }
        
        return{
            testAddRouter
        }

    }
}
</script>
